/**
 * 暴露一个 store 对象，整个应用只有一个store对象
 */

// 引入createStore，用于创建redux中store对象
import { createStore, applyMiddleware } from 'redux'
// 引入redux-thunk,用于支持异步action
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
import reducer from './reducers'

// 暴露store
export default createStore(reducer, composeWithDevTools(applyMiddleware(thunk)))
